#include "drv_led.h"
#include "drv_beep.h"
#include "drv_systick.h"
#include "drv_key.h"
#include "drv_exti.h"
uint8_t key_flg1=0;
int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	drv_led_init();
	drv_beep_init();
	drv_systick_init(168);
	drv_key_init();
	drv_exti9_init();
	while(1)
	{
		//drv_get_key();
		if(key_flg1)
		{
			drv_beep_on();
			drv_systick_ms(1000);
			drv_beep_off();
			drv_systick_ms(1000);
		}
		else
		{
			drv_beep_off();
		}
		
	}
}

